package cn.brondfish.icedfish.database.system.entity;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.util.Date;

@Entity(tableName = "sys_user")
public class SysUser {
    @ColumnInfo(name = "avatar")
    private String avatar;//头像
    @ColumnInfo(name = "create_by")
    private String createBy;//创建人
    @ColumnInfo(name = "create_time")
    private Date createTime;//创建时间
    @ColumnInfo(name = "del_flag")
    private String delFlag;//是否已删除
    @ColumnInfo(name = "email")
    private String email;//邮箱
    @ColumnInfo(name = "nick_name")
    private String nickName;//昵称
    @ColumnInfo(name = "phonenumber")
    private String phonenumber;//手机号
    @ColumnInfo(name = "remark")
    private String remark;//备注
    @ColumnInfo(name = "sex")
    private String sex;//性别
    @ColumnInfo(name = "status")
    private String status;//帐号状态
    @ColumnInfo(name = "userid")
    private Long userId;//用户主键
    @ColumnInfo(name = "user_name")
    private String userName;//用户名
    @ColumnInfo(name = "deptId")
    private Long deptId;//部门ID
    @ColumnInfo(name = "token")
    private String token;//登录token
    @NonNull
    @PrimaryKey(autoGenerate=false)
    @ColumnInfo(name = "device")
    private String device;//设备ID

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @NonNull
    public String getDevice() {
        return device;
    }

    public void setDevice(@NonNull String device) {
        this.device = device;
    }
}
